//
//  ObjectiveCAdaptor.m
//  mac_test
//
//  Created by zhukunjie on 14-5-9.
//  Copyright (c) 2014年 zhukunjie. All rights reserved.
//

#import "ObjectiveCAdaptor.h"
#include "CPlusPlusClass.h"
@implementation ObjectiveCAdaptor
- (id) init {
    if (self = [super init]) {
        testObj = new CPlusPlusClass();
    }
    return self;
}

- (void) dealloc {
    if (testObj != NULL) {
        delete testObj;
        testObj = NULL;
    }
}

- (void) objectiveFunc
{
    testObj->setInt(5);
    testObj->func();
}
@end